import request from '@/utils/request'
export function getRoleList() {
    return request({
      url: `/role/list`,
      method: 'get'
    })
  }
  // 根据角色ID获取菜单ID列表
export function getMenuIdsByRoleId(roleId: number) {
    return request({
      url: `/SuperAdmin/role/${roleId}`,
      method: 'get'
    })
  }
  
  // 更新角色菜单权限
  export function updateRoleMenus(roleId: number, menuIds: number[]) {
    return request({
      url: `/SuperAdmin/role/${roleId}`,
      method: 'post',
      data: menuIds
    })
  }